package com.java2404.micro.merchant.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.java2404.micro.common.dto.GoodsDTO;
import com.java2404.micro.common.entity.Goods;
import com.java2404.micro.common.entity.PageBean;

public interface GoodsService extends IService<Goods> {
    void AddGoods(Goods goods);

    void sale(Integer gid);

    void unsale(Integer gid);

    PageBean<GoodsDTO> ShowGoods(Integer pageNum, Integer pageSize);

    /**
     * 根据商品id查询商品详情
     */
    GoodsDTO getGoodsById(Integer gid);
}
